#!/bin/bash

BASEDIR=/opt/data/proj/apps/mongodb/bin/
BIN=mongodump

SAVEDIR=/opt/data/todocker/dump/

DIRNAME=dump-`date +"%Y%m%d%H%M%S"`

cmd="$BASEDIR/$BIN -o $SAVEDIR/$DIRNAME"

echo "do $cmd"

$cmd

echo "done."
